/**
 * 
 */
package lt.vin.currency.server;

import java.io.FileInputStream;
import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;

import lt.vin.currency.shared.Source;

import org.apache.commons.io.IOUtils;
import org.xml.sax.SAXException;





/**
 * @author Vincentas
 *
 */
public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws ParserConfigurationException 
	 * @throws SAXException 
	 * @throws TransformerException 
	 */
	public static void main(String[] args) throws IOException, SAXException, ParserConfigurationException, TransformerException {
		Source nor = new Source("", "http://www.couchsurfing.org/profile.html?id=3UQJWIU&all_friends=1", IOUtils.toString(new FileInputStream("nordea.xsl")));
		
		SourceReader reader = new SourceReader(nor);
		System.out.println(reader.getDataXml());
	}

}
